<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css继承性</title>
    <style>
        div { color: pink;
            font-size: 20px;


        }
    </style>
</head>
<body>
    <div>
        <p>孩子可以继承父亲的文字及颜色等元素</p>
    </div>
</body>
</html>